package com.fc.backingbeans.calculators;

import javax.faces.bean.ViewScoped;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.fc.calculators.BmiCalculator;
import com.fc.calculators.BmrCalculator

@Component
@ViewScoped
class BmrCalculatorBean extends UserValueCalculatorBase {
	@Autowired private BmrCalculator calculator

	@Override
	public void calculate() {
		result = calculator.calculate(weight, height, age, gender)
	}
}
